package com.resou.reader.discovery.choicenes.fragment;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.resou.reader.api.entry.ChoiceneBookListBean;
import com.resou.reader.api.entry.SortDataBean;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.resou.reader.discovery.choicenes.adapter.ChoiceneBookAdapter;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.List;

/**
 * Author: 萤火虫
 * E-mail:  Allensuns@163.com
 * Description:
 * CreateTime: 2019-03 -22
 **/
public interface IChoiceneBookFragmentContract {

    interface IChoiceneBookView extends BaseView {
        /**
         * 头部推荐书单
         *
         * @param recommendBean
         */
        void showShowRecommendBean(List<ChoiceneBookListBean.RecommendBean> recommendBean);

        /**
         * 头部推荐产品为null
         */
        void recommendEmpty();

        /**
         * 列表普通书单
         *
         * @param recommendBean
         */
        void showShowUnRecommendBean(List<ChoiceneBookListBean.UnRecommendBean.BookListBean> recommendBean);

        /**
         * 普通书单为null
         */
        void unRecommendEmpty();

        SmartRefreshLayout getSmartRefreshLayout();

        BaseQuickAdapter getAdapter();
    }

    interface IChoiceneBookPresenter extends BasePresenter {
        /**
         * 查询精品书单首页信息
         *
         * @param gender   所属频道，默认为1，男频传1,女频传2
         * @param type     推荐类型,筛选类型"推荐"下的TypeCode
         * @param category 分类,多个选择以,拼接
         * @param label    标签,多个选择以,拼接
         * @param page     页数，从0开始，默认为0
         * @return
         */
        void quearChoiceneBookData(String gender, String type, String category, String label, int page);
    }
}
